package com.hoshiicloud.purchase;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author campchen
 * @since 2019-05-15
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class Podetail implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 采购单ID
     */
    private Long poId;

    /**
     * 商品名称
     */
    private String spuName;

    /**
     * 规格
     */
    private String skuName;

    /**
     * 商品条码
     */
    private String barCode;

    /**
     * 商品箱码
     */
    private String packNo;

    /**
     * spu no
     */
    private String spuNo;

    /**
     * spu id
     */
    private Long spuId;

    /**
     * SKU NO
     */
    private String skuNo;

    /**
     * SKU ID
     */
    private Long skuId;


    /**
     * 商品单位
     */
    private String unit;

    /**
     * 规格
     */
    private String sku;

    /**
     * 单价
     */
    private BigDecimal unitPrice;

    /**
     * 采购数量
     */
    private Long quantity;

    /**
     * 采购包装数
     */
    private Long packQuantity;

    /**
     * 采购包装单位
     */
    private Long packUnit;

    /**
     * 内件数
     */
    private String innerQuantity;

    /**
     * 1-未接单 2-已发货 3-已收货
     */
    private Integer status;

    /**
     * 运费
     */
    private BigDecimal shippongCost;

    /**
     * 其他费用
     */
    private BigDecimal otherCost;

    /**
     * 税率
     */
    private BigDecimal rate;

    /**
     * 税额  =税率*金额
     */
    private BigDecimal ratefee;

    /**
     * 金额  = 单价 *数量
     */
    private BigDecimal amount;
    /**
     * 合计金额 = 金额+ 税额
     */
    private BigDecimal totalAmount;

    /**
     * 已交付数量
     */
    private Long deliveryQuantity;

    /**
     * 售后状态
     */
    private Integer backStatus;

    /**
     * 退款单号
     */
    private String backBillNo;


}
